package com.gugee.ins.common.dal.service.dic;

import com.baomidou.mybatisplus.extension.service.IService;
import com.gugee.ins.common.model.mysql.dic.InsDicCategory;

import java.util.List;

public interface InsDicCategoryDao  extends IService<InsDicCategory> {

    List<InsDicCategory> getDistinctAll();

    /**
     * 获取所有一级分类
     * @return
     */
    List<String> findAllOverallCategory();

    /**
     * 根据二级分类获取一级分类
     * @param category
     * @return
     */
    String findOverallCategoryByCategory(String category);
}
